www.gusucode.com > 基于马尔科夫随机场的图像分割matlab源码。包括ICM迭代条件模式求解最大后验概率算法 > code23/matlab MRF toy examples/utIsScalarInteger.m

    
function res = utIsScalarInteger (value)

%  function res = utIsScalarInteger (value)

res = 0;

if (isnumeric(value))
   if (max(size(value))==1)
      if (round(value)==value)
	 res = 1;
      end;
   end;
end;